public class Test3_1{
 public static void main(String[] args){
  StringBuilder result = new StringBuilder();
  for(int i = 100;i<=999; i++ ){
      int hundreds =i/100;
      int tens =(i/10)%10;
      int units = i%10;
      int cubeSum= hundreds * hundreds*hundreds+tens*tens*tens+units*units*units;
  if(cubeSum==i){
     if(result.length()>0){
        result.append(",");}
      result.append(i);
} 
   }
 System.out.println(result.toString()); 
}
}
